package dao

import (
	"im/lib/mysqllib"
	"im/models"
	"log"
)

func CreateUserMessage(info *models.ImUserMessage) error {

	if mysqllib.Db == nil {
		log.Fatal("Database connection is nil")
	}
	return mysqllib.Db.Model(&models.ImUserMessage{}).Create(info).Error
}
